#ifndef __USART_DMA_H__
#define __USART_DMA_H__

#include "stm32f4xx_hal.h"

#define BUF_SIZE 50
typedef struct
{
	uint8_t rx_len;
	volatile uint8_t recved_flag;
	uint8_t rx_buf[BUF_SIZE];
}UsartIdleT;

extern UsartIdleT usartIdle3_t;
extern UsartIdleT usartIdle4_t;
extern UsartIdleT usartIdle5_t;


void usrtdmaIdleRecInit(UART_HandleTypeDef* huart,UsartIdleT* typ_uart);
void usrtdmaRec(UART_HandleTypeDef* huart,UsartIdleT* typ_uart,DMA_HandleTypeDef* hdma_usart_rx);

#endif

